#include <bits/stdc++.h>
using namespace std;
int a[20000005];
int main(){
    int n, sum = 0;
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin >> n;
    for (int i = 1; i <= n; i++){
        cin >> a[i];
    }
    sort(a + 1, a + 1 + n);
    for (int i = 2; i <= n; i++){
        for (int j = i - 1; j >= 1; j--){
            if (a[i] > a[j] && a[i] != 1 && a[i] != 0 && a[j] != 0){
                a[i] = 1;
                a[j] = 0;
                break;
            }
        }
    }
    for (int i = 1; i <= n; i++){
        if (a[i] != 0){
            sum++;
        }
    }
    printf("%d", sum);
    return 0;
}
